﻿using Ext.Net.MVC;
using System;
using Sharp.Portal;
using Sharp.Portal.ExtNet;
using Sharp.Portal.Mvc.List;
using Sharp.Portal.Other;
using Column = Ext.Net.MVC.ColumnAttribute;

using TreeColumn = Ext.Net.MVC.TreeColumnAttribute;
using NumberColumn = Ext.Net.MVC.NumberColumnAttribute;
namespace Sharp.WebBooter.Areas.Platform.Models
{
    /// <summary>
    /// 组织层级
    /// </summary>
    [Title("组织层级管理")]
    [DataHandler(ModuleOP.Details, "浏览", 0)]
    [DataHandler(ModuleOP.Create, "新增", 1)]
    [DataHandler(ModuleOP.Edit, "修改", 2)]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    [DataHandler(ModuleOP.Refresh, "刷新", 4)]
    public partial class OrgLevelIndexViewModel : ExtSharpList
    {
        public OrgLevelIndexViewModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging | ListFeature.RowNumber;
        }
        /// <summary>
        /// 主键Id
        /// </summary>
        /// <value>主键Id</value>
        [Column(Hidden = true)]
        public Guid Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary> 
        [TreeColumn(Width = 200, Text = "名称", ToolTip = "orgPath", Order = 1), QueryOption(Option = QueryFeature.DefualtQuery)]
        public string Title { get; set; }


        /// <summary>
        /// 备注
        /// </summary>
        /// <value>备注</value>
        [Column(Text = "备注", Order = 5, Flex = 1)]
        public string Remark { get; set; }

 


    }
}